package cn.itrip.mapper.ItripUser;
import cn.itrip.pojo.ItripUser;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface ItripUserMapper {

	public ItripUser getItripUserById(@Param(value = "id") Long id)throws Exception;

	public List<ItripUser>	getItripUserListByMap(Map<String, Object> param)throws Exception;

	public Integer getItripUserCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertItripUser(ItripUser ItripUser)throws Exception;

	public Integer updateItripUser(ItripUser ItripUser)throws Exception;

	//通过userCode删除账号
	public Integer deleteItripUserByUserCode(@Param(value = "userCode") String userCode)throws Exception;

	public Integer deleteItripUserById(@Param(value = "id") Long id)throws Exception;

	//通过userCode查询账号
	public ItripUser getItripUserByUserCode(@Param(value = "userCode") String userCode)throws Exception;

	//通过userCode查询账号是否被激活
	public ItripUser getItripUserByActivate(@Param(value = "userCode") String userCode)throws Exception;

	//激活用户
	public Integer updateActivateByCode(@Param(value = "userCode")String userCode)throws Exception;
}
